package com.peanut.baby.mvp.main;

import com.peanut.baby.model.Advice;
import com.peanut.baby.model.HomeData;
import com.peanut.baby.model.LiveRoom;
import com.peanut.baby.model.QA;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

/**
 * Created by anonymouslystudio on 2017/8/28.
 */

public interface HomeFragmentContract {
    interface View extends BaseView{
        void onHomeDataGet(HomeData data);
        void onGetHomeDataFailed(String reason);
        void onAdviceGet(Advice advice);
        void onGetAdviceFailed(String reason);

        void onJoinSuccess(LiveRoom room);
        void onJoinFailed(String code, String reason);

        void onPraiseSuccess(QA qa);
        void onPraiseFailed(String reason);
    }

    interface Presenter extends BasePresenter{
        void getHomeData();
        void getAdvice();
        void joinRoom(LiveRoom room);
        void praiseQA(QA qa);
    }
}
